<?php defined('InNcPHP') or exit('Access Invalid!');?>

<div class="page">
    <table class="table tb-type2 order">
        <tbody>
        <tr class="space">
            <th colspan="15"><?php echo $lang['order_index_status'];?></th>
        </tr>
        <tr>
            <td colspan="2">
                <ul>
                    <li><strong><?php echo $lang['order_index_order_sn'];?>:</strong><?php echo $output['bargain_order_info']['bg_order_sn'];?></li>
                    <li><strong><?php echo $lang['order_index_status'];?>:</strong><?php echo $output['status'][$output['bargain_order_info']['bg_order_status']];?></li>
                    <li><strong><?php echo '订单商品原价';?>:</strong><span class="red_common"><?php echo $lang['currency'].$output['bargain_order_info']['bg_price'];?> </span></li>
                    <li><strong><?php echo '订单实际价格';?>:</strong><span class="red_common"><?php echo $lang['currency'].$output['bargain_order_info']['bg_order_price'];?> </span></li>
                    <li><strong><?php echo '朋友帮砍减免';?>:</strong><span class="red_common"><?php echo $lang['currency'].$output['cuont_sunm'];?> </span></li>
                    <li><strong><?php echo '朋友代付减免';?>:</strong><span class="red_common"><?php echo $lang['currency'].$output['paid_sunm'];?> </span></li>
                    <?php if($output['bargain_order_info']['bg_order_status'] == 40) {?>
                    <li><strong><?php echo '物流单号';?>:</strong><span class="red_common"><?php echo $output['bargain_order_info']['logistics_no'];?> </span></li>
                    <li><strong><?php echo '物流公司';?>:</strong><span class="red_common"><?php echo $output['bargain_order_info']['dhl'];?> </span></li>
                    <li><strong><?php echo '发货时间';?>:</strong><span class="red_common"><?php echo date('Y-m-d H:i:s',$output['bargain_order_info']['logistics_time']);?> </span></li>
                    <?php } ?>
                </ul>
            </td>
        </tr>
        <tr class="space">
            <th colspan="2"><?php echo $lang['order_index_detail'];?></th>
        </tr>
        <tr>
            <th><?php echo $lang['order_index_content'];?></th>
        </tr>
        <tr>
            <td>
                <ul>
                    <li><strong><?php echo $lang['order_index_nickname'];?><?php echo $lang['nc_colon'];?></strong><?php echo $output['bargain_order_info']['nickname'];?></li>
                    <li><strong><?php echo $lang['order_index_merchant'];?><?php echo $lang['nc_colon'];?></strong><?php echo $output['bargain_order_info']['mc_shop_name'];?></li>
                    <li><strong><?php echo $lang['order_index_addtime'];?><?php echo $lang['nc_colon'];?></strong><?php echo date('Y-m-d H:i:s',$output['bargain_order_info']['add_time']);?></li>
                    <?php if(intval($output['bargain_order_info']['pay_time'])){?>
                    <li><strong><?php echo '支付时间';?><?php echo $lang['nc_colon'];?></strong><?php echo date('Y-m-d H:i:s',$output['bargain_order_info']['pay_time']);?></li>
                    <?php  }?>
                 </ul>
            </td>
        </tr>
        <tr>
            <th><?php echo '收货人信息';?></th>
        </tr>
        <?php if($output['bargain_order_info']['type']=='1'){ ?>
        <tr>
            <td>
                <ul>
                    <li><strong><?php echo $lang['order_index_member_name'];?><?php echo $lang['nc_colon'];?></strong><?php echo $output['bargain_order_info']['cnee_name'];?></li>
                    <li><strong><?php echo $lang['order_index_member_phone'];?><?php echo $lang['nc_colon'];?></strong><?php echo $output['bargain_order_info']['cnee_tel'];?></li>

                </ul>
            </td>
        </tr>
        <?php }else{ ?>
            <tr>
                <td>
                    <ul>
                        <li><strong><?php echo $lang['order_index_member_name'];?><?php echo $lang['nc_colon'];?></strong><?php echo $output['bargain_order_info']['cnee_name'];?></li>
                        <li><strong><?php echo '收货人地址';?><?php echo $lang['nc_colon'];?></strong><?php echo $output['bargain_order_info']['address_name'];?></li>
                        <li><strong><?php echo $lang['order_index_member_phone'];?><?php echo $lang['nc_colon'];?></strong><?php echo $output['bargain_order_info']['cnee_tel'];?></li>

                    </ul>
                </td>
            </tr>

        <?php }?>
        <tr>
            <th><?php echo $lang['order_index_ticket_info'];?></th>
        </tr>
        <tr>
            <td><table class="table tb-type2 goods ">
                    <tbody>
                    <tr>
                        <th><?php echo $lang['order_index_ticket_info'];?></th>
                        <th class="align-center"><?php echo $lang['order_index_ticket_type'];?></th>
                        <th class="align-center"><?php echo $lang['order_index_ticket_num'];?></th>
                        <th class="align-center"><?php echo $lang['order_index_ticket_price']; ?></th>
                    </tr>
                    <tr>

                        <td><?php echo $output['bargain_order_info']['bg_title']; ?></td>
                        <td class="align-center"><?php echo $output['type'][$output['bargain_order_info']['type']];?></td>
                        <td class="align-center"><?php echo '1';?></td>
                        <td class="align-center"><?php echo $lang['currency'].$output['bargain_order_info']['bg_price'];?></td>
                    </tr>
                    </tbody>
                </table>
            </td>
        </tr>
<!-- 订单代付信息-->
        <tr>
            <th><?php echo '活动代付信息';?></th>
        </tr>
        <tr>
            <td><table class="table tb-type2 goods ">
                    <tbody>
                    <tr>
                        <th><?php echo '好友昵称';?></th>
                        <th class="align-center"><?php echo '代付金额';?></th>

                    </tr>
                    <?php if($output['paid_civil'] && is_array($output['paid_civil'])){ ?>
                        <?php foreach ($output['paid_civil'] as $k => $v){ ?>
                    <tr>

                        <td><?php echo $v['nickname']; ?></td>
                        <td class="align-center"><?php echo $v['paid_sunm'];?></td>

                    </tr>
                            <?php } ?>
                    <?php } ?>
                    </tbody>
                </table>
            </td>
        </tr>

        </tbody>
        <tfoot>
        <tr class="tfoot">
            <td><a href="JavaScript:void(0);" class="btn" onclick="history.go(-1)"><span><?php echo $lang['nc_back'];?></span></a></td>
        </tr>
        </tfoot>
    </table>
</div>
